<script setup>
import { inject } from 'vue'

const id = inject('id')
const title = inject('title')
const dialogFormVisible = inject('dialogFormVisible')
/**打开对话框 */
function openDialog(){
  id.value = ''
  title.value = '新建数据库连接'
  dialogFormVisible.value = true
}
</script>

<template>
  <el-header>
    <el-button @click="openDialog">数据库连接</el-button>
    <el-button>配置</el-button>
  </el-header>
</template>
